package com.wen.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.wen.mapper.PurchaseOrderMapper;

import com.wen.pojo.PurchaseOrder;

import com.wen.pojo.dto.PurchaseOrderDto;
import com.wen.service.PurchaseOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PurchaseOrderImpl extends ServiceImpl<PurchaseOrderMapper, PurchaseOrder> implements PurchaseOrderService {
   @Autowired
   private PurchaseOrderMapper mapper;



    @Override
    public List<PurchaseOrder> PurByIds(Long id) {
        List<PurchaseOrder> purchaseOrder = mapper.PurByIds(id);
        return purchaseOrder;
    }

    @Override
    public boolean purUp(String id) {
        boolean flag = mapper.purUp(id);
        if (!flag)
            return false;
        return true;
    }
}
